package org.tarena.dang.dao;

import java.sql.SQLException;

import org.tarena.dang.entity.User;

public interface UserDAO {
	public void save(User user) throws SQLException;
	public void update(User user) throws SQLException;
	public String findByEmailCode(int id)throws SQLException;
	public User findById(int id) throws SQLException;
	public User findByPwd(String email, String password) throws SQLException;
	public void updateEmailVerify(int id) throws SQLException;
	public boolean findByEmail(String email) throws SQLException;
	
	
	
}
